public class java8 {
    private final static double zhight=0.0005;

    public static void main(String[] args) {

        int num=0;
        double z=zhight;
        double shan=8844.43;
        while (z<shan){
            z *= 2;
            num++;
        }
        System.out.println("纸对折次数为"+num+"次");

    }
}
